

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layuiAdmin 控制台主页一</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="{{ADMIN_DOMAIN}}static/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="{{ADMIN_DOMAIN}}static/style/admin.css" media="all">
</head>
<body>
  
  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-header">用户信息</div>
          <div class="layui-card-body layui-text">
            <table class="layui-table">
              <colgroup>
                <col width="100">
                <col>
              </colgroup>
              <tbody>
                <tr>
                  <td>昵称</td>
                  <td>
                    {{userInfo['nick']}}
                  </td>
                </tr>
                <tr>
                  <td>appid</td>
                  <td>
                    {{userInfo['appid']}}
                 </td>
                </tr>
                <tr>
                  <td>秘钥</td>
                  <td>
                    ******************************
                    <blockquote class="layui-elem-quote">秘钥千万不要泄露了，秘钥属于敏感信息，如果怀疑泄露，请联系客服解决</blockquote>
                 </td>
                </tr>
                <tr>
                  <td>订单的异步回调通知地址</td>
                  <td>
                    {{userInfo['notice_url']}}
                 </td>
                </tr>
                <tr>
                  <td></td>
                  <td>
                    <button class="layui-btn layui-btn-sm layui-btn-normal editBase"><i class="layui-icon"></i>点击我修改基本信息</button>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
        <div class="layui-card">
          <div class="layui-card-header">版本信息</div>
          <div class="layui-card-body layui-text">
            <table class="layui-table">
              <colgroup>
                <col width="100">
                <col>
              </colgroup>
              <tbody>
                <tr>
                  <td>当前版本</td>
                  <td>
                    v{{version}}
                  </td>
                </tr>
                <tr>
                  <td>基于框架</td>
                  <td>
                    yaf + layer 
                 </td>
                </tr>
                <tr>
                  <td>主要特色</td>
                  <td>零门槛 / 响应式 / 清爽 / 极简</td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
        <div class="layui-card">
          <div class="layui-card-header">
            系统
            <i class="layui-icon layui-icon-tips" lay-tips="禁止盗版" lay-offset="5"></i>
          </div>
          <div class="layui-card-body layui-text layadmin-text">
            <p>禁止盗版!</p>
          </div>
        </div>
      </div>
    </div>
  </div>

    <script src="{{ADMIN_DOMAIN}}static/layui/layui.js"></script>
  <script>
  layui.config({
    base: '{{ADMIN_DOMAIN}}static/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index'],function(){
    var $ = layui.$
    $(".editBase").click( function(){
        edit();
    });
    function edit(){
      var title = '添加后台用户',
              _url = "{{getu('admin/userAdd')}}"
      _table = layer.open({
        type: 2
        ,title: "修改基本信息" // 标题
        ,content: "{{getu('user/base')}}"  // url
        ,maxmin: true // 是否可以全屏
        ,area: ['80%', '80%'] // 弹出层的宽/高
        ,end: function () { // 页面销毁后执行

        }
        ,cancel: function () { // 右上角关闭按钮触发的回调

        }
      });
    }
  });
  </script>
</body>
</html>

